<?php require VIEW_ROOT.'/common/header.php'?>

<style>
.total { font-size:10px; margin-left:3px; }
.caseitem { white-space:nowrap; margin:8px; line-height:30px; background:#1f5b98; padding:1px 7px 2px 7px; border-radius:5px; }
.caseitem a { color:#eee; text-decoration:none; }
.caseitem a:hover { text-decoration:none; }
</style>

<table>
    <tr>
        <th>快速添加</th>
    </tr>
    <tr>
        <td class="frm">
            <?php foreach ($res as $item) : ?>
                <span class="caseitem"><a href="?m=case&a=add_do&name=<?php echo $item['name']; ?>"><?php echo $item['name']; ?></a></span>
            <?php endforeach; ?>
        </td>
    </tr>
</table>

<form action="?m=case&a=add_do" method="post">
<table>
	<tr>
		<th colspan="2">普通添加</th>
	</tr>
	<tr>
		<td width="100">说明</td>
		<td class="frm">
            <input type="text" name="name" value="" />
        </td>
	</tr>
	<tr>
		<td>时间</td>
		<td class="frm">
            <input type="text" name="time" value="<?php echo date('Y-m-d H:i:s'); ?>" />
		</td>
	</tr>
	<tr>
		<td>备注</td>
		<td class="frm">
            <input type="text" name="note" value="" class="lng" />
		</td>
	</tr>
	<tr>
		<td></td>
		<td class="frm"><input type="submit" value="提交" /></td>
	</tr>
</table>
</form>

<?php require VIEW_ROOT.'/common/footer.php'?>
